<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="<?php echo Yii::app()->language; ?>" />
	<meta name="robots" content="index, nofollow" />
	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/system.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/template.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div id="minwidth-body">
    <div id="containerwrap">
    	<div id="left-column">
            <div id="header">
           	 <div id="logo">
            	 <a href="<?php echo Yii::app()->homeUrl; ?>" title="<?php echo CHtml::encode(Yii::app()->name); ?>"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/logo.jpg" title="<?php echo CHtml::encode(Yii::app()->name); ?>" /></a>
             </div>
       		</div><!-- header -->
            
            <div id="mainmenu">
            <?php $this->widget('zii.widgets.CMenu',array(
			'firstItemCssClass'=>'first',
			'lastItemCssClass'=>'last',
			'linkLabelWrapper'=>'span',
			'activateParents'=>true,
			'activateItems'=>true,
			'activeCssClass'=>'active',
			'id'=>'main-menu-scroll',
			'encodeLabel'=>false,
			'items'=>array(
				array('label'=>Yii::t('system','dashboard'), 'linkOptions'=>array('id'=>'li-item-dashboard'), 'url'=>array('/admin/index')),
				array('label'=>Yii::t('system','member-manager'), 'linkOptions'=>array('id'=>'li-item-member'), 'url'=>array('/test1/index')),
				array('label'=>Yii::t('system','menu-manager'), 'linkOptions'=>array('id'=>'li-item-menu-manager'), 'url'=>array('/test1/index')),
				array('label'=>Yii::t('system','content-manager'), 'linkOptions'=>array('id'=>'li-item-content-manager'), 'url'=>'#', 'items'=>						array(
				array('label'=>Yii::t('system','artitle-manager'), 'url'=>array('/content/index')),
				array('label'=>Yii::t('system','category-manager'), 'url'=>array('/category/index')),
				array('label'=>Yii::t('system','featured-article-manager'), 'url'=>array('/content/featured')),
				
				),),
				array('label'=>Yii::t('system','files-manager'), 'linkOptions'=>array('id'=>'li-item-files-manager'), 'url'=>array('/test1/index')),
				array('label'=>Yii::t('system','contact-manager'), 'linkOptions'=>array('id'=>'li-item-contact-manager'), 'url'=>array('/test1/index')),
				array('label'=>Yii::t('system','config-manager'), 'linkOptions'=>array('id'=>'li-item-config-manager'), 'url'=>array('/test1/index')),
				
				array('label'=>'Parent 2', 'url'=>'#', 'itemOptions'=>array('id'=>'itemid12'), 'linkOptions'=>array('id'=>'myId1'),'submenuOptions'=>array('id'=>'submenu'), 'items'=>array(
					array('label'=>'Parent 2 1', 'url'=>array('/test3/index')),
					array('label'=>'Parent 2 2', 'url'=>array('/test4/index')),
				),
				),
				array('label'=>'Test 5', 'url'=>array('/test5/index'),  'linkOptions'=>array('class'=>'class5', 'title'=>'Test 5'), 'itemOptions'=>array('class'=>'myclass5'),),
				array('label'=>'Module Test', 'url'=>array('/test/test/index'),  'linkOptions'=>array('class'=>'classtest', 'title'=>'Module test'), 'itemOptions'=>array('class'=>'myclasstest5'),),
				array('label'=>'Login', 'url'=>array('/user/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/user/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
            </div><!-- menu left -->
            
        </div><!-- left column -->
        <div id="right-column">
        	<div id="right-top-information">
            	<div id="module-status">
					<span class="loggedin-users"><?php echo Yii::t('system','hello-user');?>: <strong><span style="color:#f8ab50;"><?php echo Yii::app()->user->name?></span></strong></span>
            		<span class="no-unread-messages">
                    	<a href="#"><span style="padding:2px; color:#f8ab50; ">0</span><?php echo Yii::t('system','view-message');?></a>
                    </span>
					<span class="viewsite">
                    	<a target="_blank" href="<?php echo Yii::app()->request->getBaseUrl(true).'/../';?>"><?php echo Yii::t('system','viewsiste');?></a>
                     </span>
                    <span class="logout">
                        <a href="<?php echo Yii::app()->createUrl('/site/logout');?>"><?php echo Yii::t('system','logout');?></a>
                     </span>
             	</div>
            </div><!-- Information top right -->
        	<div id="container">
				<?php echo $content; ?>
            </div>
        </div><!-- right column -->
    	
    </div>
</div><!-- page -->
<div class="clr"></div>
<div id="footer">
		<?php echo Yii::app()->params->copyrightInfo;  ?><br />
        <?php echo Yii::app()->params->version; ?>
	</div><!-- footer -->

</body>
</html>